package com.iplay.thezen.memento;

/**
 * @author dangwu
 * @since 2021/9/23 8:26 下午
 */
public class Client {
    public static void main(String[] args) {
        Originator originator = new Originator();
        Caretaker caretaker = new Caretaker();
        caretaker.setMemento(originator.createMemento());
        originator.restoreMemento(caretaker.getMemento());
    }
}
